import request from '../utils/request';

export const loginPost = query => {
    return request({
        url: query.url,
        method: 'post',
        data: query.data
    });
};

export const mlogin= query => {
    return request({
        url: '/usercenter/loginByOpenKey',
        method: 'get',
        params: query
    });
};

export const sendMsg = query => {

    let url = query.url.replace("{id}", query.id);
    console.log(url)
    return request({
        url: url,
        method: 'get',
        // params: query.data
    });
};

export const lastLogin = query => {
    return request({
        url: query.url,
        method: 'get',
        data: query.data
    });
};

export const loginTimes = query => {
    return request({
        url: query.url,
        method: 'get',
        data: query.data
    });
};

export const getCounts = query => {
    return request({
        url: query.url,
        method: 'get',
        data: query.data
    });
};

export const getProjectAmount = query => {
    return request({
        url: query.url,
        method: 'get',
        data: query.data
    });
};

export const checkSession = query => {
    return request({
        url: '/usercenter/user/checkSession',
        method: 'get'
    });
};


